package edu.sctu.zhengsenwen.month201506.day20150617;

import java.applet.Applet;
import java.awt.*;

/**
 * Appletviewer命令的实例演示
 * Created by user15 on 2015/6/17.
 */
public class AppletDemo extends Applet {

    public void init() {

        repaint();
    }

    public void paint(Graphics graphics){

        graphics.setFont(new java.awt.Font("Diaiog",1,16));

        graphics.drawString("亲爱的读者，欢迎学习Applet.",80,65);
    }
}

//java编程思想与实践第77页
